package com.aigou.admin.aigouspringboot.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author Mr.LiFuXing
 * @Date 2024/12/6 16:52
 * @Title RandomUtil
 * @Package com.aigou.utils
 */
public class RandomUtil {
    /**
     * 用来生成随机id
     * @return
     */
    public static String getRandomNumber(){
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = format.format(new Date());
        return s.replace("-", "").replace(":","").replace(" ","");
    }
}
